// TestHD3DDlg.h : header file
//

#pragma once

#include "HD3D.h"

// CTestHD3DDlg dialog
class CTestHD3DDlg : public CDialog
{
// Construction
public:
	CTestHD3DDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_TESTHD3D_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	HCAPTOR m_hCaptor;
	D3DFORMAT m_d3dfmt;
	DWORD m_dwWidth;
	DWORD m_dwHeight;
	BYTE* m_pbBits;
	DWORD m_dwFrames;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
private:
	BOOL m_bInit;
public:
	afx_msg void OnDestroy();
private:
	BOOL StopCapture(void);
};
